home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 4
/
Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso
/
Development
/
Source
/
Telnet 2.6.1d1 4⁄26⁄94 Folder
/
source
/
network
/
MacTCP
/
MyMacTCPstructures.h
< prev
next >
Wrap
Text File
|
1993-12-16
|
975b
|
29 lines
#define noError 0
#define TCPBUFSIZ (1024*8)
#define MAX_FDS_ELEMS 32
#define MAX_SWDS_ELEMS 16
typedef struct exfds {
short inuse; /* Is this being used? */
wdsEntry fds; /* The real data */
} exfds;
typedef struct StreamRec { // 470 bytes
StreamPtr stream; /* Apple's lovely Stream Pointer */
char *buffer; /* Where the immovable TCP buffer is */
short push; /* TRUE if we should push next data block */
char *sbuffer; /* Where the send buffer is */
wdsEntry fds[MAX_FDS_ELEMS]; /* Free Data Structure list */
exfds exFDS[MAX_FDS_ELEMS]; /* exFDS entries */
short maxFDSused; /* Max of the FDS's that have been used */
// int mseg; /* BYU 2.4.15 */
// int service; /* BYU 2.4.15 */
short portType; /* UDATA, PDATA, PFTP, CNXN, NO_TYPE */
Ptr edata; /* Ptr to Encryption data */
} StreamRec, *StreamRPtr;
typedef struct MyTCPpb { // 106 Bytes
TCPiopb pb;
long SavedA5;
} MyTCPpb, *MyTCPpbPtr;